from rest_framework import serializers
from apps.users.models import   User

class UserModelSerializer(serializers.ModelSerializer):
    class Meta:
        model=User

        fields=['id','username','email','mobile','password']
        extra_kwargs={
            'password':{
                'write_only':True,
                'max_length':15,
                'min_length':5
            }
        }
